# coding: gb2312
# Copyright (C), 2013-2060, NetEase.
# Author: lixin
# Date: 2013-5-17
# Description: 
import datetime,os,sys,traceback,math,logging,calendar
import subject_module,cbg_monitor
class MoneyDisplay(subject_module.Observer, subject_module.DisplayElement):  
    def __init__(self, cbg_monitor=None):  
        self.cbg_monitor = cbg_monitor  
        self.cbg_monitor.register(self)  
        
    def update(self):  

        self.display()  
  
    def display(self):  
        print "sucess"





if __name__ == '__main__':  
    test_data = cbg_monitor.CBGMonitor("xyq")  
    
    current = MoneyDisplay(test_data)    
    
    test_data.set_data(18,70,100); print  
    test_data.set_data(20,80,120); print  
    